//1.导入vue和vuex
import Vue from 'vue';
import Vuex from 'vuex';
import search from './modules/search.js'
import user from './modules/user.js'
// 2.安装vuex插件
Vue.use(Vuex)
// 3.创建store实例
const store = new Vuex.Store({
    modules: {
        search,
        user
    }
})

export default store